package com.funo.wcity.app.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.funo.wcity.app.dao.TblUserMailDAO;
import com.funo.wcity.app.entity.TblUserMail;
import com.funo.wcity.app.service.TblUserMailService;

@Service("tblUserMailService")
public class TblUserMailServiceImpl implements TblUserMailService {
	@Resource(name="tblUserMailDAO")
    private TblUserMailDAO tblUserMailDAO;

	public TblUserMail getTblUserMail(Integer idUserMail) {
		
		return this.tblUserMailDAO.get(idUserMail);
	}

	public List getTblUserMailList(Integer idUser) {
		 
		return this.tblUserMailDAO.getTblUserMailList(idUser);
	}

	public void saveTblUserMail(TblUserMail tblUserMail) {
		 this.tblUserMailDAO.saveOrUpdate(tblUserMail);
	}

	public void deleteTblUserMail(TblUserMail tblUserMail) {
		 this.tblUserMailDAO.delete(tblUserMail);
	}
	 
}
